package com.huilian.iotbox.mqtt.server.base.service;

import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.dto.DeviceDto;
import com.huilian.iotbox.data.po.Device;;
import com.huilian.iotbox.data.po.Product;
import com.huilian.iotbox.data.vo.DeviceVo;

/**
 * @author 谢洛涛
 * @date 2021/3/31 12:05
 */
public interface DeviceService {

    ServerResponse updateDeviceById(DeviceDto deviceDto);

    DeviceVo findOneDeviceByDeviceNo(String deviceNo);

    Integer insert(Device device);

    void checkUploadAccountCode(DeviceDto deviceDto, Product product, DeviceVo deviceVo, Integer loginId);
}
